<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
require_once('c_manage.php');

class Home extends C_Manage {

	/**
	 * Index Page for this controller.
	 * map to /
	 */
	public function index()
	{            
		$this->lang->load('common');
		$data = array('lang'=> $this->lang->language);
		$this->load->view('home',$data);
	}
	
	/**
	 * Index Page for this controller.
	 * map to /home/welcome
	 */
	public function welcome(){
		$this->lang->load('common');
		$welcome_msg = sprintf($this->lang->line('welcome'),$this->lang->line('site_name'));
		$data = array('lang'=> $this->lang->language,'welcome_msg'=>$welcome_msg);
		$this->load->view('inc_header',$data);
		$this->load->view('home_welcome',$data);
		$this->load->view('inc_footer');	
	}
}